import request from '@/utils/request'

export const GetBusService = () => {
  return request.get('/bus/list')
}

export const AddBusService = (data) => {
  return request.post('/bus/save', data)
}

export const EditBusService = (data) => {
  return request.put('/bus/update', data)
}

export const DelBusService = (id) => {
  return request.delete('/bus/delete', {
    params: { id }
  })
}

export const GetBusDetailService = (id) => {
  return request.get('/bus/findById', {
    params: { id }
  })
}

export const GetBusFindByQueryService = (pointName) => {
  return request.get('/bus/findByPoint', {
    params: {pointName}
  })
}
